package com.zrgj.front.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.zrgj.common.response.BaseResponse;
import com.zrgj.common.response.StatusCodeEnum;
import com.zrgj.domain.Product;
import com.zrgj.manager.service.IProductService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/user")
public class UserPageController {
    @Reference
    private IProductService productService;

    @RequestMapping("/index")
    public BaseResponse index(){
        return new BaseResponse(StatusCodeEnum.NO_CONTENT,"/user_index");
    }

    @RequestMapping("/shop")
    public BaseResponse shop(){
        return new BaseResponse(StatusCodeEnum.SUCCESS,"/user_shop");
    }

    @RequestMapping("/productDetails")
    public BaseResponse productDetails(){
        return new BaseResponse(StatusCodeEnum.NO_CONTENT,"/user_product_details");
    }

    @RequestMapping("/loginUI")
    public BaseResponse loginUI(){
        return new BaseResponse(StatusCodeEnum.NO_CONTENT,"/user_loginUI");
    }

    @RequestMapping("/registerUI")
    public BaseResponse registerUI(){
        return new BaseResponse(StatusCodeEnum.NO_CONTENT,"/user_register");
    }
}
